<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/list.css"/>
		<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
	</head>
	<body>
	<table id="expressman-list" class="tab tab-hover">
	</table>
	</body>
	<script src="/qrcode/jquery2.1.4.js"></script>
	<script src="/layer/layer.js"></script>
	<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-table/1.17.1/bootstrap-table.min.js"></script>
	<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-table/1.17.1/locale/bootstrap-table-zh-CN.min.js"></script>
	<script>
		$(function(){
			var windowId = layer.load();
			$("#expressman-list").bootstrapTable({
				url:"/admin/expressman/list.do",
				striped:true,
				pageNumber:1,
				pagination:true,
				sidePagination:"server",
				pageSize:8,
				pageList:[5,10,20],
				showRefresh:true,
				queryParams:function(params){
					console.log(params.offset);
					console.log(params.limit);
					var temp = {
						offset: params.offset,
						pageNumber: params.limit
					}
					return temp;
				},
				columns:[
					{
						title:"编号",
						field:"id",
						sortable:true
					},
					{
						title:"姓名",
						field:"name",
						sortable:true
					},
					{
						title:"电话号",
						field:"phone",
						sortable:true
					},
					{
						title:"密码",
						field:"password",
						sortable:true
					},
					{
						title:"身份证号",
						field:"idnumber",
						sortable:true
					},
					{
						title:"派件数",
						field:"dispatchNum",
						sortable:true
					},
					{
						title:"注册时间",
						field:"registerTime",
						sortable:true
					},
					{
						title:"上次登录时间",
						field:"lastLoginTime",
						sortable:true
					}
				]
			})
			layer.close(windowId);
		})
	</script>
</html>
